
<div class="personalCentervendorOne personalCentervendorTwo">
    <div class="gongsi">
        <div class="imgArea"><img src="{{asset('images/500406908_banner@2x.png')}}" alt=""></div>
        <div class="gongsixingxi">
            <div class="gongsiName">{{$user->name}}</div>
            <div class="gonsxis">
                @if($user->isAgent())
                    <p>生产厂商</p>
                @elseif($user->isPartner())
                    <p>合作厂商</p>
                @elseif($user->isInvest())
                    <p>投资方</p>
                @endif
                <a class="signOut" href="{{ route('logout') }}"
                   onclick="event.preventDefault();
                           document.getElementById('logout-form').submit();">
                    退出登录
                </a>

                <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                    {{ csrf_field() }}
                </form>
            </div>
        </div>
    </div>
    <div class="moneyArea">
        <div class="money">
            <div class="moneyLeft">
                <p>可提现</p>
                <div class="moneyZ">¥ {{sprintf("%.2f",$fee['can_fee'])}}</div>
            </div>
            <div class="moneyRight"><a href="{{route('vendor.wallet',['fee'=>$fee['can_fee']])}}">去提现</a></div>
        </div>
        <div class="zongshouru">
            <div class="zongshouruTitle">总收入</div>
            <div class="zongshouruZ">
                <div class="number">¥ {{sprintf("%.2f",$amount)}}</div>
                <div class="shouyiumingxi"><a href="{{route('vendor.incomeRecords')}}">收益明细 ></a></div>
            </div>
        </div>
    </div>
    <div class="allEquipment">
        <div class="allEquipmentTitle">全部设备</div>
        <div class="allEquipmentList">
            <div class="items">
                <a href="{{route('vendor.device')}}">
                    <img src="{{asset('icon/1@2x.png')}}" alt="">
                    <p>全部设备</p>
                </a>
            </div>

           @if($user->isAgent())
            <div class="DG"><img src="{{asset('icon/18@2x.png')}}" alt=""></div>
            <div class="items">
                <a href="{{route('vendor.wait')}}">
                    <img src="{{asset('icon/4@2x.png')}}" alt="">
                    <p>待维修设备</p>
                </a>
            </div>
            <div class="DG"><img src="{{asset('icon/18@2x.png')}}" alt=""></div>
            <div class="items">
                <a href="{{route('vendor.repairRecords')}}">
                    <img src="{{asset('icon/3@2x.png')}}" alt="">
                    <p>维修记录</p>
                </a>
            </div>
            @endif
        </div>
    </div>
</div>
